home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / zkuste / delphi / kompon / d123456 / CHEMPLOT.ZIP / TPlot / BCB Demo / Normal1.h < prev   
C/C++ Source or Header  |  2001-07-25  |  3KB  |  79 lines

  1. //---------------------------------------------------------------------------
  2. #ifndef Normal1H
  3. #define Normal1H
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include "Plot.hpp"
  10. #include "PlotMenu.hpp"
  11. #include <ExtCtrls.hpp>
  12. #include <Menus.hpp>
  13. #include <Grids.hpp>
  14. #include <Buttons.hpp>
  15. #include "NEdit.hpp"
  16. #include "Nedit.hpp"
  17. #include "Plotimagelist.hpp"
  18. #include "Plotmenu.hpp"
  19. #include "Plottoolbar.hpp"
  20. #include <ComCtrls.hpp>
  21. #include <ToolWin.hpp>
  22. //---------------------------------------------------------------------------
  23.  
  24. typedef TSeries* PSeries;
  25.  
  26. #define PI 3.1415926535897
  27. #define RADIUS 50
  28.  
  29. class TMainForm : public TForm
  30. {
  31. __published:    // IDE-managed Components
  32.     TStringGrid *StringGrid1;
  33.     TPanel *Panel1;
  34.     TLabel *Label1;
  35.     TLabel *Label2;
  36.     TLabel *Label3;
  37.     TLabel *Label4;
  38.     TLabel *Label5;
  39.     TBitBtn *GoBitBtn;
  40.     TBitBtn *PlotTypeBitBtn;
  41.     TBitBtn *BitBtn3;
  42.     TBitBtn *GoCrazyBitBtn;
  43.     TBitBtn *TraceBitBtn;
  44.     TBitBtn *ClearAllBitBtn;
  45.     TNEdit *MinNEdit;
  46.     TNEdit *MaxNEdit;
  47.     TNEdit *StepSizeNEdit;
  48.     TNEdit *MeanNEdit;
  49.     TNEdit *StdDevNEdit;
  50.     TStatusBar *StatusBar1;
  51.     void __fastcall FormCreate(TObject *Sender);
  52.     void __fastcall ExitMenuItemClick(TObject *Sender);
  53.     void __fastcall GoBitBtnClick(TObject *Sender);
  54.     void __fastcall PlotTypeBitBtnClick(TObject *Sender);
  55.     void __fastcall BitBtn3Click(TObject *Sender);
  56.     void __fastcall TraceBitBtnClick(TObject *Sender);
  57.     void __fastcall ClearAllBitBtnClick(TObject *Sender);
  58.     void __fastcall GoCrazyBitBtnClick(TObject *Sender);
  59.     void __fastcall CrazyTimerTimer(TObject *Sender);
  60.     void __fastcall MyPlotFileOpen(TObject *Sender, AnsiString TheFile);
  61.     void __fastcall FormActivate(TObject *Sender);
  62.     void __fastcall Plot1AfterPaint(TObject *Sender, TCanvas *ACanvas);
  63. private:    // User declarations
  64.     Integer Revolutions, StartWidth, StartHeight;
  65.     Single Angle, AngleInc;
  66.     TDateTime ElapsedTime, StartTime;
  67.     TPlot *MyPlot;
  68.     TPlotImageList *MyPlotImageList;
  69.     TPlotToolBar *MyPlotToolBar;
  70.     TPlotMenu *MyPlotMenu;
  71.     TStringList *TheXStringData;
  72. public:        // User declarations
  73.     __fastcall TMainForm(TComponent* Owner);
  74. };
  75. //---------------------------------------------------------------------------
  76. extern PACKAGE TMainForm *MainForm;
  77. //---------------------------------------------------------------------------
  78. #endif
  79.